﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test1
{
    class Circle : Shape
    {
        private readonly double PI = 3.14;
        private double radius;
        public Circle(double radius)
        {
            this.radius = radius;
        }
        public bool judgeLegal()
        {
            if (radius > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public double getArea()
        {
            return PI * radius * radius;
        }
    }
}
